package com.service;

import com.dao.DictionaryItemMapper;
import com.pojo.DictionaryItem;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service
public class DictionaryItemService {

    @Resource
    private DictionaryItemMapper dictionaryItemMapper;

    public List<DictionaryItem> findAll() {
        return dictionaryItemMapper.findAll();
    }

    public DictionaryItem findById(Integer id) {
        return dictionaryItemMapper.findById(id);
    }

    public void insert(DictionaryItem dictionaryItem) {
        dictionaryItemMapper.insert(dictionaryItem);
    }

    public void update(DictionaryItem dictionaryItem) {
        dictionaryItemMapper.update(dictionaryItem);
    }

    public void deleteById(Integer id) {
        dictionaryItemMapper.deleteById(id);
    }
}
